{erl_opts, [debug_info]}.

{pre_hooks,
  [{"(linux|darwin|solaris)", compile, "./get-msquic.sh v1.6.0"},
   {"(linux|solaris)", compile, "cmake -B c_build"},
   {"darwin", compile, "cmake -B c_build"},
   {"(linux|solaris)", compile, "make -j `nproc` -C c_build"},
   {"darwin", compile, "make -j `sysctl -n hw.ncpu` -C c_build"},
   {"darwin", compile, "cp priv/libquicer_nif.dylib priv/libquicer_nif.so"}
  ]}.
{post_hooks,
   %% todo: do it to CMake
  [
   %% {"(linux|darwin|solaris)", compile, "test -f c_build/msquic/bin/Debug/libmsquic.lttng.so &&"
   %%  "cp c_build/msquic/bin/Debug/libmsquic.lttng.so priv/ || echo ok"}
  ]}.
{deps, [ {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
       ]}.
